﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace iNet.Win32
{
	/// <summary>
	/// 提供 Dwmapi.dll 的 Windows API 函式。
	/// </summary>
	public static unsafe class Dwmapi
	{
		#region DwmExtendFrameIntoClientArea
		[DllImport("dwmapi")]
		public static extern IntPtr DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
		#endregion
		#region DwmGetWindowAttribute
		[DllImport("dwmapi")]
		public static extern IntPtr DwmGetWindowAttribute(IntPtr hwnd, DWMWA dwAttribute, void* pvAttribute, int cbAttribute);
		#endregion
		#region DwmIsCompositionEnabled
		[DllImport("dwmapi")]
		public static extern IntPtr DwmIsCompositionEnabled(out bool pfEnabled);
		#endregion
		#region DwmSetWindowAttribute
		[DllImport("dwmapi")]
		public static extern IntPtr DwmSetWindowAttribute(IntPtr hwnd, DWMWA dwAttribute, void* pvAttribute, int cbAttribute);
		#endregion
	}
}
